package org.foreverframework.system.user.service.impl;

import org.foreverframework.system.user.service.UserService;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

	private static BundleContext context;

	static BundleContext getContext() {
		return context;
	}

	public void start(BundleContext bundleContext) throws Exception {
		Activator.context = bundleContext;
		context.registerService(UserService.class, new UserServiceImpl(), null);
		System.out.println(getClass().getName() + "start()");
	}

	public void stop(BundleContext bundleContext) throws Exception {
		Activator.context = null;
	}

}
